package com.mf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mf.entity.bo.TaskDetailBo;
import com.mf.mapper.TaskDetailMapper;

import com.mf.service.ITaskDetailService;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 任务汇报明细 服务实现类
 *
 * @author mf
 * @since 2025-03-08
 */
@Service
public class TaskDetailServiceImpl extends ServiceImpl<TaskDetailMapper, TaskDetailBo> implements ITaskDetailService {
    /**
     * 查询任务id查询汇报明细
     */
    @Override
    public List<TaskDetailBo> findListById(int taskId) {
        final LambdaQueryWrapper<TaskDetailBo> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TaskDetailBo::getTaskId, taskId);
        return baseMapper.selectList(wrapper);
    }
}
